package com.eusun.design.chain;

public class ErrorLogger extends AbstractLogger {
    public ErrorLogger() {
        this(AbstractLogger.ERROR);
    }

    public ErrorLogger(int level) {
        this.level = level;
        setNextLogger(null);
    }

    @Override
    protected void write(String message) {
        System.out.println("Error logger: " + message);
    }
}
